<div class="yourAccMain_R_blue">
<?php
	$user_id = $this->Session->read('Auth.User');
	if(isset($user_id) and ($user_id))
		{
		?>
             <ul>
                <li>
                    <label><?php echo $user_id['name']; ?></label>
                </li>
                 <li>
                    <label>	
			<?php
			   $user_id = $this->Session->read('Auth.User.id');
			 if((isset($fb_id) and ($fb_id) and sizeof($fb_id)) and (isset($user_id) and ($user_id)))
				 {
							echo"". $facebook->logout(); echo "";
				 }
			 else
				 {
					 $user_id = $this->Session->read('Auth.User.id');
					 if(isset($user_id) and ($user_id))
						 {
							 echo "";
							 echo $this->Html->link('Logout', array('controller'=>'users', 'action'=>'logout'));
							 echo "";
						 }
						 else{
							 echo $html->link('Login', array('controller'=>'users', 'action'=>'login'));
						 }
				 }
		?> 
</label>
                </li>
            </ul>
        <?php	
		}
	else
		{
	?>
		  <ul>
			<li>
			  <label>Email</label>
			</li>
			<li>
			  <input type="text" class="text_box_blue" name="">
			</li>
			<li>
			  <label>Password</label>
			</li>
			<li>
			  <input type="text" class="text_box_blue" name="">
			</li>
			<li>&nbsp;</li>
			<li>
			  <input type="button" class="add2wish f_left" value="Login" name="">
			</li>
		  </ul>
	<?php
		}
?>
    </div>